package com.itheima.Interface3Demo;

public class Test {
    public static void main(String[] args) {
        //完成接口小案例
        //定义学生类、创建学生对象、封装学生数据
        //定义一套接口两套实现类
        Student []allStudents = new Student[9];
        allStudents[0] = new Student("张三", "男", 100);
        allStudents[1] = new Student("李四", "男", 99);
        allStudents[2] = new Student("王五", "女", 98);
        allStudents[3] = new Student("赵六", "女", 97);
        allStudents[4] = new Student("孙七", "男", 96);
        allStudents[5] = new Student("周八", "女", 95);
        allStudents[6] = new Student("吴九", "男", 94);
        allStudents[7] = new Student("郑十", "女", 93);
        allStudents[8] = new Student("赵敏", "女", 100);

        ClassStudents cmd=new ClassDateinter1(allStudents);
        cmd.printAllStudents();
        cmd.printAverageGrade();
    }
}
